<?php


namespace Zyan\SitemapOutput\Format;


class Txt implements FormatInterface
{
    protected $item = [];
    public function write($url, $lastmod, $changefreq = 'daily', $priority = '0.8', $mobile = 'pc,mobile')
    {
        $this->item[] = $url;
    }

    public function getContents()
    {
        $contents = join("\n",$this->item);
        $this->item = [];
        return $contents;
    }
}